#!/bin/sh

urls=`cat print.css | grep images | grep -v static | cut -d'(' -f2 | cut -d ')' -f1 |sed s/\"//g | cut -d'?' -f1`
for url in $urls 
do
    echo $url
    echo "-----------------------------------"

    img=`basename "$url"`
    if [ -f $img ] ; then
        echo "$img already exists"
    else
        wget "http://dribbble.com/images/$img"
    fi

done
